package com.core.sys.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.core.common.entity.BaseEntity;



/**
 * 用户实体类
 *
 */
@Entity
@Table(name="t_user")
public class UserEntity extends BaseEntity{

	/** serialVersionUID*/
	private static final long serialVersionUID = 1L;
	
	@Column(name = "userName", nullable = true,length=64)
	private String userName;	//用户名
	
	@Column(name = "realName", nullable = true,length=64)
	private String realName; //真实名字
	
	@Column(name = "gender", nullable = true,length=4)
	private String  gender; //性别
	
	@Column(name = "email", nullable = true,length=128)	
	private String email; //邮箱
	
	@Column(name = "passWord", nullable = true,length=256)
	private String passWord; //登录密码
	
	@Column(name = "pwdSalt", nullable = true,length=128)
    private String pwdSalt;
	
	@Column(name = "pwsHash", nullable = true,length=128)
    private String pwsHash;
	
	@Column(name = "mobile", nullable = true,length = 11)
	private String mobile; //手机号码
	
	@Column(name = "deleteFlag", nullable = false)
	private boolean deleteFlag = false;
	
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public String getPwdSalt() {
		return pwdSalt;
	}

	public void setPwdSalt(String pwdSalt) {
		this.pwdSalt = pwdSalt;
	}

	public String getPwsHash() {
		return pwsHash;
	}

	public void setPwsHash(String pwsHash) {
		this.pwsHash = pwsHash;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public boolean isDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(boolean deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	
}
